package controller;

import java.applet.Applet;

public class RenderingThread extends Thread {
	/**
     *  Ce thread appelle le rafraichissement de notre fen�tre 
     *  toutes les 40 milli-secondes (25 images/secondes)
     */
	Applet TS;
	
	public RenderingThread(Applet TS){
		this.TS = TS;
	}
     public void run(){
        while( true ){
           try {
               // on appelle notre propre m�thode de rafraichissement
              TS.repaint();
              sleep( 40 );
           } catch ( Exception e ) {} 
        }
     }
}
